function App() {
  //const divContent ="标签内容"
  const divTitle="标签标题"

  const flag=true 
  let divContent =null
  if(flag){
    divContent= <span>flag为true</span>
  }else{
    divContent= <p>flag为true</p>
  }

  const list=[
    {id:1,name:'小李'},
    {id:2,name:'小张'},
    {id:3,name:'小吴'}]

  const listContent = list.map(item=>(
    <li key={item.id}>{item.name}</li>
  ))

  return (
    <div title={divTitle}>
      {divContent}
      <ul>
        {listContent}
      </ul>
    </div>
  );
}

export default App;
